<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Verify</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
</head>
<body bgcolor="#cccccc">
<div id="verify"></div>
<input type="button" value="禁用" onclick="enabled(0);" />
<input type="button" value="开启" onclick="enabled(1);" />
<input type="button" value="点击" onclick="clicked();" />
<script type="text/javascript">

var flashvars = {btimage:"images/bt_reg.png", key:"123488", callback:"next", bgcolor:"", onloaded:"onloaded"}; 
var params = {base: ".", allowfullscreen:"true", allowscriptaccess:"always", wmode:"opaque"};
swfobject.embedSWF("verify.swf", "verify", "200", "150", "10","flash/expressInstall.swf", flashvars, params); 

function next(key) {
	document.title = key;
	var seed = key.substr(0, 1);
	var num = key.substr(1);
	var str = num >> seed;
	alert(str);
}

function enabled(v) {
	var obj = swfobject.getObjectById("verify");
	if (obj) {
		obj.enabled(v);
	}
}
function clicked() {
	var obj = swfobject.getObjectById("verify");
	if (obj) {
		obj.clicked();
	}
}
function onloaded() {
	var div = document.createElement("div");
	div.innerHTML = "ready";
	document.body.appendChild(div);
}
</script>
</body>
</html>
